package com.xiaoge.service.impl;

import com.xiaoge.entity.Department;
import com.xiaoge.mapper.DepartmentMapper;
import com.xiaoge.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 业务接口
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAll() {
        return departmentMapper.getAll();
    }
}
